package com.app.biz.domain;

import com.app.common.annotation.Excel;
import com.app.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 重点运行企业（按行业）对象 operation_metric
 * 
 * @author Zhou_S
 * @date 2024-01-18
 */
public class OperationMetric extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String baseId;

    /** 指标名称 */
    @Excel(name = "指标名称")
    private String metricName;

    /** 企业数 */
    @Excel(name = "企业数")
    private String companyCount;

    /** 营业收入(本月止累计) */
    @Excel(name = "营业收入(本月止累计)")
    private String monthToRevenue;

    /** 增减(营业收入) */
    @Excel(name = "增减(营业收入)")
    private String incomeVariance;

    /** 本月止累计(利润总额) */
    @Excel(name = "本月止累计(利润总额)")
    private String mtdProfit;

    /** 增减（利润总额） */
    @Excel(name = "增减", readConverterExp = "利=润总额")
    private String totalProfitDelta;

    /** 年月 */
    @Excel(name = "年月")
    private String yearMonth;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date baseCreateTime;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    public void setBaseId(String baseId) 
    {
        this.baseId = baseId;
    }

    public String getBaseId() 
    {
        return baseId;
    }
    public void setMetricName(String metricName) 
    {
        this.metricName = metricName;
    }

    public String getMetricName() 
    {
        return metricName;
    }
    public void setCompanyCount(String companyCount) 
    {
        this.companyCount = companyCount;
    }

    public String getCompanyCount() 
    {
        return companyCount;
    }
    public void setMonthToRevenue(String monthToRevenue) 
    {
        this.monthToRevenue = monthToRevenue;
    }

    public String getMonthToRevenue() 
    {
        return monthToRevenue;
    }
    public void setIncomeVariance(String incomeVariance) 
    {
        this.incomeVariance = incomeVariance;
    }

    public String getIncomeVariance() 
    {
        return incomeVariance;
    }
    public void setMtdProfit(String mtdProfit) 
    {
        this.mtdProfit = mtdProfit;
    }

    public String getMtdProfit() 
    {
        return mtdProfit;
    }
    public void setTotalProfitDelta(String totalProfitDelta) 
    {
        this.totalProfitDelta = totalProfitDelta;
    }

    public String getTotalProfitDelta() 
    {
        return totalProfitDelta;
    }
    public void setYearMonth(String yearMonth) 
    {
        this.yearMonth = yearMonth;
    }

    public String getYearMonth() 
    {
        return yearMonth;
    }
    public void setBaseCreateTime(Date baseCreateTime) 
    {
        this.baseCreateTime = baseCreateTime;
    }

    public Date getBaseCreateTime() 
    {
        return baseCreateTime;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("baseId", getBaseId())
            .append("metricName", getMetricName())
            .append("companyCount", getCompanyCount())
            .append("monthToRevenue", getMonthToRevenue())
            .append("incomeVariance", getIncomeVariance())
            .append("mtdProfit", getMtdProfit())
            .append("totalProfitDelta", getTotalProfitDelta())
            .append("yearMonth", getYearMonth())
            .append("baseCreateTime", getBaseCreateTime())
            .append("remarks", getRemarks())
            .toString();
    }
}
